package pl.com.sthaether.mc.main.menu;

import javafx.scene.control.Button;
import javafx.scene.layout.VBox;

import java.util.ArrayList;
import java.util.List;

public class MCMenuBar extends VBox {

    private MCMenu menu = null;
    private MCMenuButtonsPane menuButtonPane = null;

    private MCMenuBar() {
        menu = new MCMenu();
        menuButtonPane = new MCMenuButtonsPane();
        menuButtonPane.getChildren().addAll(initButtos());
        this.getChildren().addAll(menu, menuButtonPane);
    }
    private static class MCHolder{
        private static final MCMenuBar INSTANCE = new MCMenuBar();
    }

    private List<Button> initButtos() {
        List<Button> buttons = new ArrayList<>();
        // TODO #needToDo - complete
        // TODO #analyseWhenMore - what buttons should be there?
        return buttons;
    }


    public static MCMenuBar getInstance() {
        return MCHolder.INSTANCE;
    }

}
